import request from '@/router/axios'

export function fetchCkCornealList(query) {
  return request({
    url: '/pvm/ckcorneal/page',
    method: 'get',
    params: query
  })
}

export function fetchCkCornealReturnList(query) {
  return request({
    url: '/pvm/ckcorneal/getCkCornealReturnPage',
    method: 'get',
    params: query
  })
}

export function addCkCornealObj(obj) {
  return request({
    url: '/pvm/ckcorneal',
    method: 'post',
    data: obj
  })
}

export function getCkCornealObj(id) {
  return request({
    url: '/pvm/ckcorneal/' + id,
    method: 'get'
  })
}

export function delCkCornealObj(id) {
  return request({
    url: '/pvm/ckcorneal/' + id,
    method: 'delete'
  })
}

export function putCkCornealObj(obj) {
  return request({
    url: '/pvm/ckcorneal',
    method: 'put',
    data: obj
  })
}
